﻿using UnityEngine;
using System.Collections;
using NodeCanvas;
using UnityEditor;
using System.IO;
public class PanelMakerScriptableObject : NodeScriptableObject<PMNode,PMTransform,PMClipData> {
	public const string ASAssetsPath = "Assets/NodeCanvas/Editor/PanelMaker/PanelMaker";
	[MenuItem("Assets/Node/AS/Create NodeClip")]
	public static PanelMakerScriptableObject Execute()
	{
		return NodeScriptableFactor.Execute<PanelMakerScriptableObject> (ASAssetsPath);
	}
	public void InitData(){
		string lab = "xxx";
		FileInfo info = new FileInfo (Application.dataPath+"/demo.json");
		StreamWriter writer;   
		if(info.Exists)   
		{   
			info.Delete();    
		}      
		writer = info.CreateText();   
		writer.Write(lab);   
		writer.Close();   

	}
}
[System.Serializable]
public class PMNode:Node{
	
}
[System.Serializable]
public class PMTransform:NodeTransition{
	
}
[System.Serializable]
public class PMClipData:NodeClip<PMNode,PMTransform>{
	
}